package com.xinqi.modules.user;

import com.xinqi.common.mybatis.annotation.JsonTypeScan;
import com.xinqi.common.security.annotation.EnableXqFeignClients;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 认证授权中心
 *
 * @author dgyu
 */
@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
@EnableXqFeignClients
@EnableTransactionManagement
@JsonTypeScan(basePackages = "com.xinqi.modules.user.**.domain")
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(UserApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info("(♥◠‿◠)ﾉﾞ  认证授权中心启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }
}
